package com.icat.house.web.controller;

import com.jfinal.ext.route.ControllerBind;

@ControllerBind(controllerKey = "/")
public class IndexController extends BaseController {
	/**
	 * 首页
	 */
	public void index() {
		String userAgent = getHeader("user-agent");
		if (userAgent.indexOf("Android") != -1 || userAgent.indexOf("iPhone") != -1
				|| userAgent.indexOf("iPad") != -1) {
			render("/model_index.html");
		} else {
			forwardAction("/web_index");
			render("/index.html");
		}
	}
}
